package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import java.util.List;

import cn.edu.neusoft.maxingxin231.yuejian06.Bean.AttListBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.AttListIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.ListListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class AttListModel extends RetrofitBaseModel implements AttListIface<AttListBean> {
    LoginService loginService;
    Retrofit retrofit;
    public AttListModel(){
        retrofit=getRetrofit();
        loginService = getLoginService();
    }

    @Override
    public void getAttList(String user_id, ListListener<AttListBean> listListener) {
        Call<List<AttListBean>> call = loginService.getAttList(user_id);
        callenqueueList(call,listListener);
    }
}
